<template>
  <div class="one">
    <div>商品名称：{{ item.proname }}</div>
    <div>商品价格：{{ item.proprice }}</div>
    <div>商品描述：{{ item.id }}</div>
    <div>{{ this.count }}</div>
    <button @click="kan">砍10元</button>
  </div>
</template>
<script>
export default {
  props: {
    item: {
      type: Object,
    },
    count: {
      type: Number,
    },
    string: {
      type: String,
      required: true,
    },
  },
  methods: {
    kan() {
      //   this.$emit("kanjia", -10, this.des);
      //   this.count = this.cont -= 10;
      this.item.proprice = this.item.proprice -= 10;
    },
  },
};
</script>
<style>
.one {
  width: 400px;
  height: 150px;
  border: solid 2px #868686;
  border-radius: 15px;
  margin-bottom: 50px;
  padding: 20px;
}
</style>
